package com.robot.coupon.client;

import com.robot.coupon.client.impl.MemberClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lin
 */
@Component
@FeignClient(value = "robot-member", fallback = MemberClientImpl.class)
public interface MemberClient {
    /**
     * 通过id查询会员
     *
     * @param id
     * @return
     */
    @GetMapping("member/third/findMemberById/{id}")
    public String thirdFindMemberById(@PathVariable String id);
}
